package com.xingxuecn.limit.common.model;

import org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @author Kris at 2018/9/5 17:57
 */
public class Role {
    private Integer id;
    private Integer gmlevel;
    private String position;
    private String name;

    public Role() {
    }

    public Role(Integer id, Integer gmlevel, String position, String name) {
        this.id = id;
        this.gmlevel = gmlevel;
        this.position = position;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Integer getGmlevel() {
        return gmlevel;
    }

    public void setGmlevel(Integer gmlevel) {
        this.gmlevel = gmlevel;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, new MultilineRecursiveToStringStyle())
                .append("id", id)
                .append("position", position)
                .append("gmlevel", gmlevel)
                .append("name", name)
                .toString();
    }
}
